<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>js节点</title>
	<style>
	#da{
		width: 200px;
		height: 200px;
		background: yellow url() 0 0 no-repeat;
		margin-bottom: 20px;
	}
	
	.class1{
		list-style: none;
		width: 200px;
		height: 40px;
		margin-top: 20px;
		background: pink url() 0 0 no-repeat;
	}

	#neew{
		width: 100px;
		height: 100px;
		background: green url() 0 0 no-repeat;
	}
	</style>

	<script type="text/javascript">
		window.onload = function  () {
		// 	var da=document.getElementById('da');
		// var wan_neng=document.getElementsByClassName("wan_neng");

		// 	wan_neng[0].onclick=function(){
		// 		var class1=document.getElementsByClassName("class1");
		// 		da.removeChild(class1[0]);
		// 	}



			// var aa=document.createElement('span');


			// var bb = document.createTextNode('sdfsdfsdfsdf');

			
			// var da = document.getElementById('da');
			// da.appendChild(bb);
			// var bb=document.createTextNode("新增段落文字")
			// 	aa.appendChild(bb);
			var neew=document.getElementById("neew");
			var txt=document.getElementById("txt");
			var class1=document.getElementsByClassName('class1')
			var wan_neng=document.getElementsByClassName("wan_neng");
			var da=document.getElementById("da");
			var p=document.getElementsByTagName("p");
				// p[0].onmouseover=function(){
					// da.style.display="none";
					// class1[1].innerHTML="22";
				// wan_neng[0].setAttribute("name",'nameaaa') ;
				// txt.innerHTML="改掉你";
				// neew.style.background="red";
					// neew.innerHTML="晚安";
					// class1[2].style.display="none";
				// }
				wan_neng[0].onclick=function(){
					// alert(123)
					// class1[1].style.display="none";
				}


		}
	</script>
</head>
<body>
	<input type="button" value="万能键" class="wan_neng" >
	<div id="da">
		<li class="class1">1</li>
		<li class="class1">2</li>
		<li class="class1">3</li>
	</div>

	<p id="txt">第一段文字</p>
	<p id="txt">第二段文字</p>

	<div id="neew">移动鼠标至此</div>
</body>
</html>